/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  column: [
	  // {
    //   label: '主键',
    //   prop: 'id'
    // },
	  {
      label: '居民编号',
      prop: 'userId'
    },
	  // {
    //   label: '药物过敏史',
    //   prop: 'drugAllergy'
    // },
	  // {
    //   label: '暴露史',
    //   prop: 'exposed'
    // },
	  // {
    //   label: '传染病',
    //   prop: 'infectious'
    // },
	  // {
    //   label: '手术情况',
    //   prop: 'surgery'
    // },
	  // {
    //   label: '外伤',
    //   prop: 'trauma'
    // },
	  // {
    //   label: '输血',
    //   prop: 'blood'
    // },
	  // {
    //   label: '家族史-父亲',
    //   prop: 'fatherDisease'
    // },
	  // {
    //   label: '家族史-母亲',
    //   prop: 'motherDisease'
    // },
	  // {
    //   label: '家族史-兄弟姐妹',
    //   prop: 'basDisease'
    // },
	  // {
    //   label: '家族史-子女',
    //   prop: 'childrenDisease'
    // },
	  // {
    //   label: '遗传病史',
    //   prop: 'genetic'
    // },
	  // {
    //   label: '残疾情况',
    //   prop: 'disability'
    // },
	  // {
    //   label: '房颤',
    //   prop: 'fibrillation'
    // },
	  // {
    //   label: '短暂性脑缺血发作',
    //   prop: 'tia'
    // },
	  // {
    //   label: '心肌缺血',
    //   prop: 'ischemic'
    // },
	  // {
    //   label: '心力衰竭',
    //   prop: 'heartFail'
    // },
	  // {
    //   label: '缺血性心脏病',
    //   prop: 'heartDisaseTia'
    // },
	  // {
    //   label: '动脉硬化',
    //   prop: 'atherosclerosis'
    // },
	  // {
    //   label: '糖尿病',
    //   prop: 'glycuresis'
    // },
	  // {
    //   label: '颈动脉狭窄',
    //   prop: 'carotid'
    // },
	  // {
    //   label: '心绞痛',
    //   prop: 'angina'
    // },
	  // {
    //   label: '正常，轻度高血压，中度以上高血压',
    //   prop: 'bloodPressure'
    // },
	  // {
    //   label: '规律，基本规律，不规律',
    //   prop: 'habits'
    // },
	  // {
    //   label: '血糖',
    //   prop: 'bloodSugar'
    // },
	  // {
    //   label: '血脂',
    //   prop: 'bloodFat'
    // },
	  // {
    //   label: '饮酒',
    //   prop: 'drink'
    // },
	  // {
    //   label: '久坐',
    //   prop: 'sedentary'
    // },
	  // {
    //   label: '吸烟',
    //   prop: 'smoke'
    // },
	  // {
    //   label: '睡眠质量',
    //   prop: 'sleepQuality'
    // },
	  // {
    //   label: '健康知识',
    //   prop: 'healthKnowledge'
    // },
	  // {
    //   label: '创建时间',
    //   prop: 'createTime'
    // },
	  {
      label: '更新时间',
      prop: 'updateTime'
    },
	  // {
    //   label: '删除标志',
    //   prop: 'delFalg'
    // },
  ]
}

var DIC = {
  FAMILYDISEASE: [{
      label: '无',
      value: '无'
  }, {
      label: '高血压',
      value: '高血压'
  }, {
      label: '糖尿病',
      value: '糖尿病'
  }, {
      label: '冠心病',
      value: '冠心病'
  }, {
      label: '恶性肿瘤',
      value: '恶性肿瘤'
  }, {
      label: '慢性阻塞性肺疾病',
      value: '慢性阻塞性肺疾病'
  }, {
      label: '脑卒中',
      value: '脑卒中'
  }, {
      label: '结核病',
      value: '结核病'
  }, {
      label: '肝炎',
      value: '肝炎'
  }, {
      label: '严重精神障碍',
      value: '严重精神障碍'
  }, {
      label: '传染病',
      value: '传染病'
  }, {
      label: '职业病',
      value: '职业病'
  }, {
      label: '其他',
      value: '其他'
  }]
}
export const detailOption = {
  group: [{
      icon: 'el-icon-info',
      label: '生活习惯',
      prop: 'habits',
      column: [{
          label: '饮酒',
          prop: 'drink',
          dicUrl: '/admin/dict/type/drink_status',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '久坐',
          prop: 'sedentary',
          dicUrl: '/admin/dict/type/sedentary_status',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '生活',
          prop: 'habits',
          dicUrl: '/admin/dict/type/habits_status',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '吸烟',
          prop: 'smoke',
          dicUrl: '/admin/dict/type/smoke_status',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '健康知识',
          prop: 'healthKnowledge',
          dicUrl: '/admin/dict/type/healthKnowledge_status',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '睡眠质量',
          prop: 'sleepQuality',
          dicUrl: '/admin/dict/type/sleepQuality_status',
          type: 'radio',
          span: 24,
          button: true
      }]
  }, {
      icon: 'el-icon-info',
      label: '基本健康指标',
      prop: 'healthIndicator',
      column: [{
          label: '血压',
          prop: 'bloodPressure',
          dicUrl: '/admin/dict/type/bloodPressure',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '血糖',
          prop: 'bloodSugar',
          dicUrl: '/admin/dict/type/bloodSugar',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '血脂',
          prop: 'bloodFat',
          dicUrl: '/admin/dict/type/bloodFat',
          type: 'radio',
          span: 24,
          button: true
      }]
  }, {
      icon: 'el-icon-info',
      label: '心脏病疾病史',
      prop: 'heartDisease',
      column: [{
          label: '房颤',
          prop: 'fibrillation',
          dicUrl: '/admin/dict/type/heartDisease',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '短暂性脑缺血发作',
          prop: 'tia',
          dicUrl: '/admin/dict/type/heartDisease',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '心力衰竭',
          prop: 'heartFail',
          dicUrl: '/admin/dict/type/heartDisease',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '缺血性心脏病',
          prop: 'heartDisaseTia',
          dicUrl: '/admin/dict/type/heartDisease',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '动脉硬化',
          prop: 'atherosclerosis',
          dicUrl: '/admin/dict/type/heartDisease',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '颈动脉狭窄>=70%',
          prop: 'carotid',
          dicUrl: '/admin/dict/type/carotid',
          type: 'radio',
          span: 24,
          button: true
      }]
  }, {
      icon: 'el-icon-info',
      label: '药物过敏史',
      prop: 'allergy',
      column: [{
          label: '药物过敏史',
          prop: 'drugAllergy',
          dicUrl: '/admin/dict/type/drugAllergy',
          type: 'radio',
          span: 24,
          button: true
      }]
  }, {
      icon: 'el-icon-info',
      label: '暴露史',
      prop: 'exposed',
      column: [{
          label: '药物过敏史',
          prop: 'exposed',
          dicUrl: '/admin/dict/type/exposed',
          type: 'radio',
          span: 24,
          button: true
      }]
  }, {
      icon: 'el-icon-info',
      label: '既往史',
      prop: 'pastHistory',
      column: [{
          label: '传染病',
          prop: 'infectious',
          dicUrl: '/admin/dict/type/pastHistory',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '手术',
          prop: 'surgery',
          dicUrl: '/admin/dict/type/pastHistory',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '外伤',
          prop: 'trauma',
          dicUrl: '/admin/dict/type/pastHistory',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '输血',
          prop: 'blood',
          dicUrl: '/admin/dict/type/pastHistory',
          type: 'radio',
          span: 24,
          button: true
      }]
  }, {
      icon: 'el-icon-info',
      label: '家族史',
      prop: 'familyDisease',
      column: [{
          label: '父亲',
          prop: 'fatherDisease',
          // dicUrl: '/admin/dict/type/disease_family',
          dicData: DIC.FAMILYDISEASE,
          mock:{
            type:'dic'
          },
          span:24,
          type: 'checkbox',
          button:true
      }, {
          label: '母亲',
          prop: 'motherDisease',
          dicData: DIC.FAMILYDISEASE,
          mock:{
            type:'dic'
          },
          span:24,
          type: 'checkbox',
          button:true,
      }, {
          label: '兄弟姐妹',
          prop: 'basDisease',
          type: "checkbox",
          dicData: DIC.FAMILYDISEASE,
          mock:{
            type:'dic'
          },
          span:24,
          type: 'checkbox',
          button:true
      }, {
          label: '子女',
          prop: 'childrenDisease',
          type: "checkbox",
          dicData: DIC.FAMILYDISEASE,
          mock:{
            type:'dic'
          },
          span:24,
          type: 'checkbox',
          button:true
      }]
  }, {
      icon: 'el-icon-info',
      label: '遗传病史及残疾状况',
      prop: 'heredity',
      column: [{
          label: '遗传病史',
          prop: 'genetic',
          dicUrl: '/admin/dict/type/genetic',
          type: 'radio',
          span: 24,
          button: true
      }, {
          label: '残疾状况',
          prop: 'disability',
          dicUrl: '/admin/dict/type/disability',
          type: 'radio',
          span: 24,
          button: true
      }]
  }]
}
